using System;
using System.Data;
using System.Collections;
using APP.QUANLY.Common;

namespace RMAS.DAL
{
    /// <summary>
    /// Summary description for TOURGUIDE.
    /// </summary>
    public class TOURGUIDE
    {
              private Int32 _ID;
      private string _Picture;
      private string _PathPiture;
      private string _Clip;
      private string _PathClip;
      private bool _ISClipTour;
        private bool isExisting;
        #region Properties
        public bool IsExisting
        {
              get{return isExisting;}
              set{isExisting = value;}
        }
	      public bool IsSetID; 
      public bool IsIDNullable   
      { 
	 get { return false;  } 
      }
      public Int32 ID
      {
         get { return _ID; }
         set 
	    { 
 		 _ID = value;
		IsSetID = true;
 	    }
      }
    public bool IsSetPicture; 
    public bool IsPictureNullable   
    { 
		get { return false;  } 
    }
    public string Picture
    {
        get{ return _Picture;  }
        set
		{
			_Picture = value;
			IsSetPicture = true;
		}
    }
    public bool IsSetPathPiture; 
    public bool IsPathPitureNullable   
    { 
		get { return false;  } 
    }
    public string PathPiture
    {
        get{ return _PathPiture;  }
        set
		{
			_PathPiture = value;
			IsSetPathPiture = true;
		}
    }
    public bool IsSetClip; 
    public bool IsClipNullable   
    { 
		get { return false;  } 
    }
    public string Clip
    {
        get{ return _Clip;  }
        set
		{
			_Clip = value;
			IsSetClip = true;
		}
    }
    public bool IsSetPathClip; 
    public bool IsPathClipNullable   
    { 
		get { return false;  } 
    }
    public string PathClip
    {
        get{ return _PathClip;  }
        set
		{
			_PathClip = value;
			IsSetPathClip = true;
		}
    }
    public bool IsSetISClipTour; 
    public bool IsISClipTourNullable   
    { 
		get { return false;  } 
    }
    public bool ISClipTour
    {
        get{ return _ISClipTour;  }
        set
		{
			_ISClipTour = value;
			IsSetISClipTour = true;
		}
    }

        #endregion

        #region Constructors
        public TOURGUIDE()
        {
            Reset();
        }
        public TOURGUIDE(TOURGUIDE obj)
        {
            	this._ID = obj.ID;
	this._Picture = obj.Picture;
	this._PathPiture = obj.PathPiture;
	this._Clip = obj.Clip;
	this._PathClip = obj.PathClip;
	this._ISClipTour = obj.ISClipTour;
        }
        #endregion

        public void Reset()
        {
                     _ID = EmptyValues.v_Int32;
         _Picture = EmptyValues.v_string;
         _PathPiture = EmptyValues.v_string;
         _Clip = EmptyValues.v_string;
         _PathClip = EmptyValues.v_string;
         _ISClipTour = EmptyValues.v_bool;
        }

         
        #region Hidden

        /*
        private void readProperties(IDataReader reader)
        {
            try
            {
                                if(!(reader["ID"] is DBNull))
		{
			obj.ID = (Int32)reader["ID"];
		}
                if(!(reader["Picture"] is DBNull))
		{
			obj.Picture = (string)reader["Picture"];
		}
                if(!(reader["PathPiture"] is DBNull))
		{
			obj.PathPiture = (string)reader["PathPiture"];
		}
                if(!(reader["Clip"] is DBNull))
		{
			obj.Clip = (string)reader["Clip"];
		}
                if(!(reader["PathClip"] is DBNull))
		{
			obj.PathClip = (string)reader["PathClip"];
		}
                if(!(reader["ISClipTour"] is DBNull))
		{
			obj.ISClipTour = (bool)reader["ISClipTour"];
		}
//            _ID = (reader["ID"] is DBNull)?DalTools.EmptyValues.v_Int32:(Int32)reader["ID"];
//            _Picture = (reader["Picture"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["Picture"];
//            _PathPiture = (reader["PathPiture"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["PathPiture"];
//            _Clip = (reader["Clip"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["Clip"];
//            _PathClip = (reader["PathClip"] is DBNull)?DalTools.EmptyValues.v_string:(string)reader["PathClip"];
//            _ISClipTour = (reader["ISClipTour"] is DBNull)?DalTools.EmptyValues.v_bool:(bool)reader["ISClipTour"];
            }
            catch (Exception ex)
            {
                throw new DalException("Failed to read properties from DataReader.", ex);
            }
        } 
        */

        #endregion


        public void Fill(Int32 ID, string Picture, string PathPiture, string Clip, string PathClip, bool ISClipTour)
        {
                     this._ID = ID;
         this._Picture = Picture;
         this._PathPiture = PathPiture;
         this._Clip = Clip;
         this._PathClip = PathClip;
         this._ISClipTour = ISClipTour;
        }
    }
}